Page({
  data: {
    nodes: [{
      name: 'div',
      attrs: {
        class: 'div-class',
        style: 'line-height: 60px; color: red;'
      },
      children:[{
        type: 'text',
        text: 'Hello&nbsp;World!'
      }]
    }],
    nodes2: [{
      name: 'h2',
      attrs: {
          style: 'color: green'
      },
      children: [{
          type: 'text',
          text: '你好&nbsp;小程序'
      }]
  }]
  },

tap() {
    console.log('tap')
},
touchstart() {
    console.log('touchstart')
},
touchmove() {
    console.log('touchmove')
},
touchcancel() {
    console.log('touchcancel')
},
touchend() {
    console.log('touchend')
},
longtap() {
    console.log('longtap')
}
})